package com.bluesky.plum.uimodels.render.swing.components;

import java.awt.event.ActionListener;

import javax.swing.JButton;

public class SButton extends com.bluesky.plum.uimodels.standard.components.Button {

	JButton btn;

	public SButton() {
		btn = new JButton();

		btn.addActionListener(new ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				click();
			}
		});

	}

	@Override
	public Object getNativeComponent() {

		return btn;
	}

	@Override
	public void setCaption(String caption) {
		super.setCaption(caption);

		btn.setText(caption);

	}

}
